<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form" %>

<html>
<head>
	<%@include file="../includes/common/headCommonHtml.jsp" %>
	<title>LL-Feedback</title>
	<script src="<c:url value='/resources/epilog.js'/>"></script>
</head>
<body>
<%@include file="../includes/common/prologHtml.jsp" %>
<div class="left-nav">Left Navigation</div>
<div class="main-contents">
<div class="server-message"></div>

<%
	String feedbackSent = request.getParameter("feedbackSent"); 	
	String tooManyComments = request.getParameter("tooManyComments"); 	
	if ("1".equals (feedbackSent)) { 
%>
		<span class='success-message'>Thank you! We will be processing your feedback shortly</span> <p>
<%	} else if ("1".equals(tooManyComments)) { %>
		<span class='error-message'>Error: Sorry you have to wait until we process your previous comments</span> <p>
<%  } %>
Please use the form or send an email to feedback@learnlang.biz
<p>
<form:form method="post" action="/learnlang/feedbackPost" modelAttribute="feedbackInfo">   
<form:textarea cols="30" rows="10" path="comments"/>
<form:hidden path="username" value='<%=session.getAttribute("SessionUser") %>'/>
<p><input type="submit" value="Send"/> 
</form:form>
<%@include file="../includes/common/epilogHtml.jsp" %>
</body>
</html>
